<template>
  <div class="home_recommend">
    <ul>
      <li v-for="(item, index) of recommend" :key="index">
        <a :href="item.link">
          <img :src="item.image" alt="" />
        </a>
        <div>{{ item.title }}</div>
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  name: 'HomeRecommend',
  props: {
    recommend: {
      type: Array,
      default () {
        return []
      }
    }
  }
}
</script>

<style lang="scss" scoped>
.home_recommend {
  margin-top: 10px;
  font-size: 14px;
  padding-bottom: 20px;
  border-bottom: 10px solid #eee;

  ul {
    display: flex;
    text-align: center;

    li {
      flex: 1;

      img {
        width: 80px;
        height: 80px;
        margin-bottom: 10px;
      }
    }
  }
}
</style>
